<!DOCTYPE html>
<html lang="zh">
<head>
    <#include "../component/header.ftl">
</head>
<body style="background-color: white;">
<div style="padding-top:100px;">
    <div class="center">
        <i class="layui-icon layui-icon-face-surprised" style="font-size: 100px;"></i>
    </div>
    <div class="center">
        <span>没有访问权限</span>
    </div>
    <div class="center">
        <button type="button" class="layui-btn layui-btn-main btn-back">返回</button>
        <button type="button" class="layui-btn layui-btn-primary btn-logout">登出</button>
    </div>
</div>
<script src="../../static/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/module/' //你存放新模块的目录，注意，不是layui的模块目录
    });
    layui.use(['global'], function () {
        var $ = layui.$;
        $('.btn-back').click(function () {
            window.history.back(-1);
        });
        $('.btn-logout').click(function () {
            $.ajax({
                url: '/sso/logout',
                method: 'get',
                success: function (data) {
                    window.location.href = "/";
                }
            })
        });
    });

</script>
<style>
    .center {
        display: flex; justify-content:center;align-items:center;
        padding: 10px;
    }
</style>
</body>
</html>